// import com.alibaba.druid.DbType;
// import com.alibaba.druid.sql.ast.SQLName;
// import com.alibaba.druid.sql.ast.SQLStatementImpl;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

#include "SQLPurgeTemporaryOutputStatement.h"
#include "../../visitor/SQLASTVisitor.h"

SQLPurgeTemporaryOutputStatement::SQLPurgeTemporaryOutputStatement()
{
}

SQLPurgeTemporaryOutputStatement::SQLPurgeTemporaryOutputStatement(DbType_ptr dbType)
  :SQLStatementImpl(dbType)
{
}

// @Override
void SQLPurgeTemporaryOutputStatement::accept0(SQLASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(SQLPurgeTemporaryOutputStatement)))
  {
    acceptChild(visitor, name);
  }
  visitor->endVisit(SharedObject(SQLPurgeTemporaryOutputStatement));
}

SQLName_ptr SQLPurgeTemporaryOutputStatement::getName()
{
  return name;
}

void SQLPurgeTemporaryOutputStatement::setName(SQLName_ptr x)
{
  if (x != nullptr)
  {
    x->setParent(SharedObject(SQLPurgeTemporaryOutputStatement));
  }
  this->name = x;
}
